<%@  Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SubsidyApp.Models.site_user>" %>
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<% using (Html.BeginForm()) { %>
<fieldset>
    <div id="">
        <p>
            <label for="user_login">
                User Login:</label>
            <%= Html.TextBox("user_login", Model.user_login)%>
            <%= Html.ValidationMessage("user_login", "*")%>
        </p>
        <p>
            <label for="user_pass">
                User Password</label>
            <%= Html.TextBox("user_pass", Model.user_pass)%>
            <%= Html.ValidationMessage("user_pass", "*")%>
        </p>
        <p>
            <label for="user_email">
                Email:</label>
            <%= Html.TextBox("user_email", Model.user_email)%>
            <%= Html.ValidationMessage("user_email", "*")%>
        </p>
        <p>
            <label for="user_displayname">
                Display Name:</label>
            <%= Html.TextBox("user_displayname", Model.user_displayname)%>
            <%= Html.ValidationMessage("user_displayname", "*")%>
        </p>
        <p>
            <label for="user_registeger">
                Registration date:</label>
            <%= Html.TextBox("user_registeger", Model.user_registeger, new { @readonly = "true" })%>
            <%= Html.ValidationMessage("user_registeger", "*")%>
        </p>
        <p>
            <label for="user_active">
                User Active:</label>
            <%= Html.CheckBox("user_active", Model.user_active)%>
            <%= Html.ValidationMessage("user_active", "*")%>
        </p>
        <p>
            <label for="user_superuser">
                Superuser:</label>
            <%= Html.CheckBox("user_superuser", Model.user_superuser)%>
            <%= Html.ValidationMessage("user_superuser", "*")%>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </div>
</fieldset>
<% } %>
<a href="javascript:history.back();">[back]</a>
